#include "user_info_base_item.h"
#include "ui_user_info_base_item.h"

UserInfoBaseItem::UserInfoBaseItem(const QString &name, const QString &dept, const QString &post, const QString &phone) :
    ui(new Ui::UserInfoBaseItem)
{
    ui->setupUi(this);
    ui->name->setText(name);
    ui->dept->setText(dept);
    ui->post->setText(post);
    ui->phone->setText(phone);
}

UserInfoBaseItem::~UserInfoBaseItem()
{
    delete ui;
}

void UserInfoBaseItem::setBackgroundColor(QColor c)
{
    this->setStyleSheet("background-color: rgb(255, 186, 67);");
    //ui->dept->setStyleSheet("background-color: rgb(255, 186, 67);");
}
